<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<div id="title">
    <table class="noborder" style="width:100%;height:20%">
        <tr>
            <td style="width: 17%"><img src="${ctx}/res/images/logo.jpg" /></td>
            <td style="width: 66%"><img src="${ctx}/res/images/top4.jpg" style="width: 650px; height: 100px;"/></td>
            <s:if test="#session.user!=null">
                <td align="right" style="font-size:14px;font-weight:bold;"><span style="color:red">${session.user.username}</span>, 欢迎您 | <a href="${ctx}/user/logout.action">退出</a></td>
            </s:if>
            <s:else>
                <td align="right"><a href="${ctx}/user/index.action">登录</a> | <a href="#">注册</a></td>
            </s:else>
        </tr>
    </table>
</div>
<div id="menu">
    <ul>
        <li><a href="${ctx}/index.jsp">首页 </a></li>
        <li><a href="mainpages/htinstrument.jsp">健康仪器 </a></li>
        <li><a href="${ctx}/user/index.action">会员中心 </a></li>
        <li><a href="mainpages/expertconsult.jsp">专家咨询 </a></li>
        <li><a href="mainpages/htinformation.jsp">健康资讯 </a></li>
        <li><a href="mainpages/htcommunity.jsp">健康社区 </a></li>
        <li><a href="mainpages/contactus.jsp">联系我们 </a></li>
    </ul>
</div>